# cubes.py
cubes = [x**3+100 for x in range(1,11)]
print(cubes)

# matrix.py
matrix = [[0]*8]*10
print(matrix)
# matrix2.py
matrix = [[r*c for c in range(8)] for r in range(1,11)]
print(matrix)
# for循环搭配if语句使用
# values.py
values = [x*x for x in range(10) if x % 3 == 0]
print(values)
# forvalues.py
values = [x+y for x in "abc" for y in "0123"]
print(values)
# forvalues2.py
value = []
for x in "abc":
    for y in "0123":
        value.append(x+y)
print(value)
